<?php

namespace app\common\controller;

use app\model\store\OrderRefundItem;

class TestController
{
    public function test(){
        $refunds = OrderRefundItem::field('orei.*,ore.refund_status refund_status')->alias('orei')
            ->join('order_refund ore','ore.id = orei.order_refund_id')
            ->where('orei.order_id', 46)
            ->where('ore.refund_status', 1)
            ->column('order_item_id');
        dd($refunds);
        // 分食
        // 余尧他们几人也猎杀到了一头
    }
}
